package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Concern;
import tech.aistar.entity.Cost;
import tech.aistar.mapper.AgentMapper;
import tech.aistar.mapper.ConcernMapper;
import tech.aistar.service.IConcernService;
import tech.aistar.service.ICostService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: shuaiguo
 * @Date: 2020/10/01/17:41
 * @Description:
 */
@Service
public class ConcernImpl implements IConcernService {
    @Autowired
    private ConcernMapper concernMapper;

    @Override
    public List<Concern> selectAll() {
        return concernMapper.selectAll();
    }

    @Override
    public void insert(Concern concern) {
concernMapper.insert(concern);
    }

    @Override
    public void updateByPrimaryKey(Concern concern) {
concernMapper.updateByPrimaryKey(concern);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
concernMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<Concern> selectBytenantId(Integer tenantId) {
        return concernMapper.selectBytenantId(tenantId);
    }

    @Override
    public int deleteById(Integer id) {
        return concernMapper.deleteById(id);
    }

    @Override
    public Concern selectById(Integer tenantId, Integer houseId) {
        return concernMapper.selectById(tenantId,houseId);
    }

    @Override
    public void deleteByDoubleId(Integer tenantId, Integer houseId) {
        concernMapper.deleteByDoubleId(tenantId,houseId);
    }
}
